package com.xz.example.factory.impl;

import com.xz.example.factory.LoggerFactory;
import com.xz.example.util.Logger;
import com.xz.example.util.impl.ConsoleLogger;
import com.xz.example.util.impl.DatabaseLogger;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     DatabaseLoggerFactory   
 * @package    com.xz.example.factory.impl  
 * @date   2019/11/26 19:06  
 * @explain
 */
public class ConsoleLoggerFactory implements LoggerFactory {
    @Override
    public Logger createLogger() {
        System.out.println("经过了非常复杂的创建过程创建出了ConsoleLogger!");
        Logger logger = new ConsoleLogger();
        return logger;
    }
}
